import {
	showModal
} from "./promise";
export default function showModelFn(fn) {
	showModal({
		title: "提示",
		content: "确定要删除吗？",
		showCancel: true
	}).then(res => {
		if (res.confirm) {
			console.log("用户点击了确定");
			//确定删除函数
			fn();
		} else if (res.cancel) {
			console.log("用户点击了取消");
		}
	});
}